<template>
  <el-container>
    <el-main>
      <el-tabs tab-position="left" type="border-card" v-model="tabName">
        <el-tab-pane name="1">
          <span slot="label">
            <i class="el-icon-s-custom"></i> 我的头像
          </span>
          <avatar-upload ref="AvatarUpload"/>
        </el-tab-pane>
        <el-tab-pane name="2">
          <span slot="label">
            <i class="el-icon-user-solid"></i> 个人信息
          </span>
          <base-info ref="BaseInfo" />
        </el-tab-pane>
        <el-tab-pane name="3">
          <span slot="label">
            <i class="el-icon-user-solid"></i> 修改密码
          </span>
          <edit-pwd />
        </el-tab-pane>
      </el-tabs>
    </el-main>
  </el-container>
</template>
<script>
import AvatarUpload from "./components/avatar-upload";
import BaseInfo from "./components/base-info";
import EditPwd from "./components/edit-pwd";

export default {
  components: { AvatarUpload, BaseInfo, EditPwd },
  data() {
    return {
      //显示的选项卡
      tabName: "1",
    };
  }
};
</script>

<style lang="less" scoped>
.el-tabs {
  height: 83vh;
}
.el-tab-pane {
  height: 83vh;
}
</style>